package com.powernode.service.impl;

import com.powernode.domain.IndexImg;
import com.powernode.mapper.IndexImgMapper;
import com.powernode.service.IndexImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IndexImgServiceImpl implements IndexImgService{

    @Autowired
    private IndexImgMapper indexImgMapper;

    /**
     * 查询轮播图
     * @return
     */
    @Override
    public List<IndexImg> selectByImg() {
        List<IndexImg> list =  indexImgMapper.selectByImg();
        return list;
    }
}
